package com.project.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import javax.servlet.http.HttpServletResponse;

@Controller
@RequestMapping("my")
public class MyController {

    @RequestMapping(value = "add",method = RequestMethod.GET)
    public void test(HttpServletResponse response)throws Exception{
            response.getWriter().println("hello");

    }
}
